﻿@model MvcApplication.Models.LuongModel

@{
    ViewBag.Title = "Chỉnh sủa";
}

<h2>Edit</h2>
<p>@Model.NhanSuModel.ho_ten</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Thông tin lương</legend>

        @Html.HiddenFor(model => model.id_luong)

        <div class="editor-label">
            @Html.LabelFor(model => model.muc_luong, "Mức lương")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.muc_luong)
            @Html.ValidationMessageFor(model => model.muc_luong)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.tu_ngay, "Từ ngày")
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.tu_ngay, new { @class = "needDatePicker" })
            @Html.ValidationMessageFor(model => model.tu_ngay)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.den_ngay, "Đến ngày")
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.den_ngay, new { @class = "needDatePicker" })
            @Html.ValidationMessageFor(model => model.den_ngay)
        </div>
        @Html.Hidden("id_nhan_su", Model.id_nhan_su)

        <p>
            <input type="submit" value="Lưu" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Trở lại danh sách", "Index", new { selectedNhanSu = @Model.id_nhan_su })
</div>
